package org.zh.client.tra_aop;

import org.zh.client.jdbc.Isolation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;


@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface ZHOpenGlobalTra{

    Isolation localIsolation() default Isolation.DEFAULT;

    boolean readOnly() default false;

    GlobalType globalType() default GlobalType.NONE;

    String taSql() default "";

    int sqlParamIndex() default 0;

    boolean localConn() default true;  //在有数据源的情况下使用  关闭获得链接

    // boolean isEndNode() default false;
}
